
let timer

setInterval(() => console.log(timer),1000)

timer = setTimeout(() => { 
    console.log("我执行完了")
    clearTimeout(timer) // 并不会手动赋值为null
    timer = null
},5000)

